﻿@model MyPS.Models.LogOnModel

@{
    ViewBag.Title = "管理员登录";
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/css.css")
    @Scripts.Render("~/Scripts/jquery-1.7.1.min.js")
    <!-- 解决IE6不缓存背景图片的问题-->
    <!--[if lte IE 6]>
<script type="text/javascript" src="js/png.js"></script>
	  <script type="text/javascript">
		DD_belatedPNG.fix('.pagination LI A');
	</script>
<script type="text/javascript">
document.execCommand("BackgroundImageCache", false, true);
</script>
<![endif]-->
</head>
<body>
    @using (Html.BeginForm())
    {
       

   
        <div style="margin: 200px auto; width: 200px;">
            <fieldset>
                <legend>管理员登录</legend>
                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)
                <div class="editor-label">
                    @Html.LabelFor(model => model.UserName)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.UserName)
                    @Html.ValidationMessageFor(model => model.UserName)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.Password)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Password)
                    @Html.ValidationMessageFor(model => model.Password)
                </div>

                <div class="editor-label">
                    @Html.LabelFor(model => model.RememberMe)
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.RememberMe)
                    @Html.ValidationMessageFor(model => model.RememberMe)
                </div>

                <p>
                    <input type="submit" value="登录" />
                </p>
            </fieldset>
        </div>     
    }
</body>
</html>


